﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using efish.Framework.Service;
using efish.Framework.Model;

public partial class Login_newmemberregister : System.Web.UI.Page
{
    private IMemberService _memberService;
    public IMemberService MemberService
    {
        get
        {
            return _memberService;
        }
        set
        {
            _memberService = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Member newmember=new Member();

        if (this.Email.Text != null)
        {
            newmember.Email = this.Email.Text;
        }

        if (this.Password.Text != null)
        {
            newmember.Password = this.Password.Text;
        }

        _memberService.CreateMember(newmember);
    }
}
